import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App.vue'
import Foo from './pages/Foo.vue'
import Bar from './pages/Bar.vue'

Vue.use(VueRouter)

const routes = [
  { path: '/', component: App },
  { path: '/foo', component: Foo },
  { path: '/bar', component: Bar }
]

const router = new VueRouter({ routes })

new Vue({ router }).$mount('#app')
